<template>
  <el-dialog
    title="错误列表"
    :visible.sync="dialogVisible"
    :before-close="cancel"
    width="500px"
    :close-on-click-modal="true"
    append-to-body
  >
    <el-table :data="errorData">
      <el-table-column label="错误时间" align="center" prop="currentTime" />
      <el-table-column label="错误类型" align="center" prop="msg" />
    </el-table>
  </el-dialog>
</template>

<script>
  export default {
    name: "failList",
    props:{
      dialogVisibleFu:Boolean,
      errorData:Array
    },
    data() {
      return {
        dialogVisible:this.dialogVisibleFu,
      };
    },
    methods: {
      // 关闭
      cancel(){
        this.dialogVisible = false
        this.$emit('closeDialog', false)
      },
    },
    watch:{
      dialogVisibleFu(val){
        this.dialogVisible = val
      }
    }
  };
</script>

<style scoped>
</style>
